﻿using System.Web.Mvc;

namespace Mobile.Areas.Mobile
{
    /// <summary>
    /// Registers the Mobile area.
    /// </summary>
    public class MobileAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "Mobile";
            }
        }

        /// <summary>
        /// Sets the Mobile HomeController as the default
        /// controller in the Mobile area.
        /// </summary>
        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "Mobile_default",
                "Mobile/{controller}/{action}/{id}",
                new { Controller = "Home", action = "Index", id = UrlParameter.Optional }
            );
        }
    }
}
